﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for Constant
/// </summary>
public sealed class Constant
{
    public const string TRIP_PLAN =
        "<div id='TP{0}' class='TimeTitle'><table border='0' cellspacing='0' cellpadding='0'><tr><td class='LeftBg'></td><td class='CenterBg' valign='middle'><span style='float:right;'>{4}</span><span style='float:right; padding-top:5px; padding-right:5px;'>{3}</span><a href='tripplan_2.html'>{1}</a></td><td class='RightBg'></td></tr></table>{2}</div>";
    public const string TIME_BOX = "<div id='{0}' class='TimeBox'>{1}</div>";
    public const string TRIP_CITY = "<div EleType='CITY' id='{0}' class='TodayTitle'><span style='float:right; padding-top:5px;'>{2}</span><a href='#' onclick='ShowDesc({3});return false;'><b>{1}</b></a></div>";
    public const string TRIP_VIEW = "<ul cityId='{0}' id='{1}'><li><a href='#' onclick='ShowDesc({4});return false'><span style='float:right; padding-top:5px;'>{3}</span><img src='images/ico_a.gif' /> {2}</a></li></ul>";
    public const string TRIP_PLAN_VIEWS_TABLE = "<table style='padding-top:10px;'>{0}</table>";
    public const string TRIP_PLAN_VIEWS_TR =
        @" <tr>
           <td valign='top' style='width:20px;'><input id='{0}' onclick='InsertEventView(this.id)' type='checkbox' class='inputNone' /></td>
           <td style='width:230px;'><h2><a href=''>{1}</a></h2><img src='images/stars4.gif' /> </td>
           <td style='width:15px;'></td>
           <td valign='top' style='width:20px;'><input id='{2}' onclick='InsertEventView(this.id)' type='checkbox' class='inputNone' /></td>
           <td style='width:230px;'><h2><a href=''>{3}</a></h2><img src='images/stars4.gif' /> </td>
           </tr>
        ";
    public const string TRIP_VIEW_SELECTED = "<span><a id='tvs|{0}' href='#' onclick='DeleteEventView(this.id);return false;'><img src='images/butn_closeb.jpg' /></a><b>{1}</b></span>";

    public const string EventTemplate = "<div id='{0}' class='userEvent'><div class='eventPic'><a href='tripplan.aspx?ehId={1}'><img src='{2}' width='56' /></a></div><div class='Item'><ul><li><h2><a href='tripplan.aspx?ehId={3}'>{4}</a></h2></li><li>活动时间：{5}</li><li class='grayfont'><font class='join'><a href='{6}'>{7}3人加入</a></font> <font class='comments'><a href='{8}'>{9}5评论</a></font> <font class='shareEvent'><a href=''>好友分享</a></font> <font class='editEvent'><a href=''>编辑活动</a></font> <font class='delete'><a href='#' onclick='{10}; return false'>删除次活动</a></font></li></ul></div><div class='clear'></div></div>";
    public const string EventTemplate2 = "<div class='eventContBox'><div class='eventPicBig'><a href='tripplan.aspx?ehId={0}'><img src='{1}' /></a></div><div class='eventbodyProfil'><h2><a href='tripplan.aspx?ehId={2}'>{3}</a></h2><table cellpadding='0' cellspacing='0' border='0'><tr valign='top'><td style='width:70px;'><b>活动时间：</b></td><td style='width:160px;'>{4}</td><td><b>出发地：</b></td><td><a href='{5}'>{6}</a></td></tr><tr valign='top'><td><b>活动标签：</b></td><td>{7}</td><td><b>途径地：</b></td><td>{8}</td></tr><tr valign='top'><td colspan='4' class='grayfont'><font class='photos'><a href=''>11照片</a></font> <font class='comments'><a href=''>21评论</a></font> <font class='join'><a href=''>11人加入</a></font> <font class='shareEvent'><a href=''>好友分享</a></font> <font class='editEvent'><a href=''>编辑活动</a></font> <font class='delete'><a href=''>删除次活动</a></font></td></tr></table></div><div class='clear'></div></div>";

    public const string NEW_FRIENDS = "<dl class='member'><dt><a href='tfuserprofile.aspx?uid={0}'><img src='{1}' /></a></dt><dd><a href='tfuserprofile.aspx?uid={2}'>{3}</a></dd></dl>";

    public const string SEARCH_VIEW = "<div class='searchPlaceBox'><div class='searchPlacePic'><a href='places.aspx?id={0}'><img src='{1}' width='100' /></a></div><div class='searchPlaceItem'><h2><a href='places.aspx?id={2}'>{3}</a></h2>{4}<br />亚洲 › 中国 › <font class='redfont'>北京</font></div><div class='clear'></div></div>";
    public const string SEARCH_EVENT = "<div class='{0}'><div class='imgcont'><a href='tripplan.aspx?ehId={1}'><img src='{2}' width='56' /></a></div><div class='textcont'><ul><li><h2><a href='tripplan.aspx?ehId={3}'>{4}</a></h2></li><li>活动日期：{5}[<a href=''>{6}</a>人加入]</li><li>途径地：{7}</ul></div></div>";

    public const string TUNY_EVENTH = "<div class='eventList'><div class='Pic'><a href='TripPlan.aspx?ehId={0}'><img src='{1}' title='{2}' width='50' /></a></div><div class='content'><h2><a href='TripPlan.aspx?ehId={3}'>{4}</a></h2>{5}--{6} <b>{7}出发</b><p>已有{8}人加入 | {9}人关注 | 预算{10}元</p></div><div class='clear'></div></div>";

    #region donkey template
    public const string ATTEND_EVENTH = "<div class='donkeyBox'><div class='donkeyPic'><a href='TFUserProfile.aspx?uid={0}'><img src='{1}' width='50' /></a></div><div class='donkeyItem'><h2><a href='TFUserProfile.aspx?uid={2}'>{3}</a> 加入了 <a href='tripplan.aspx?ehId={4}'>{5}</a></h2>不做无意义的转贴（除少数尤为精彩评论），只作交流。</div><div class='clear'></div></div>";
    public const string ATTENTION_EVENTH = " <div class='donkeyBox'><div class='donkeyPic'><a href='TFUserProfile.aspx?uid={0}'><img src='{1}' width='50' /></a></div><div class='donkeyItem'><h2><a href='TFUserProfile.aspx?uid={2}'>{3}</a> 对 <a href='tripplan.aspx?ehId={4}'>{5}</a> 活动感兴趣</h2>开始时间：{6} | 地点：{7} | 参加人数：{8}</div><div class='clear'></div></div>";
    #endregion

    #region attend & attention template

    public const string AUserHeaderTemplate = @"<table cellpadding='0' cellspacing='0' border='0'>{0}</table>";
    public const string AUserItemTemplate = @"<tr>{0}</tr>";
    public const string AUserItemCellTemplate = @"<td style='width:80px; text-align:center;'><a href='TFUserProfile.aspx?uid={0}'><img src='{1}' /></a><p><a href='TFUserProfile.aspx?uid={2}'>{3}</a></p></td>";

    #endregion

    public const string ALBUM_BOX = "<div class='albumBox'><a href='TFUserAlbumAll.aspx?albumId={0}'><img src='{1}' width='120' /></a><h2><a href='TFUserAlbumAll.aspx?albumId={2}'>{3}({4})</a></h2><p>{5}上传</p><p><a href='{6}'>编辑相册</a> | <a href='TFUserAlbumAll.aspx?albumId={7}'>查看相册</a></p></div>";
    public const string ALBUM_PICS = "<img alt='' src='{0}' /><p>所属相册：{1}</p><p>上传时间：{2}</p><p>图片说明：<img alt='' src='images/element_a1.jpg' />{3}<img alt='' src='images/element_a2.jpg' /></p>";
    public const string ALBUM_LIST =
        "<div class='BlogBox'><div class='BlogTitle'><span><a href='#' onclick='editBlog({0});return false'>编辑</a> | <a href='#' onclick='delBlog({1});return false'>删除</a></span><font class='font14'><b><a href='TFProfileBlogDetail.aspx?blogId={2}'>{3}</a></b></font> {4}  阅读(<a href='#'>{5}</a>)| 评论(<a href='#'><label id='commentCount'>{6}</label></a>) </div><div class='BlogPreview'>{7} (<a href='TFProfileBlogDetail.aspx?blogId={8}'>阅读全文</a>)</div></div>";
    public const string ALBUM_TMP_LIST =
        "<div class='BlogBox'><div class='BlogTitle'><span><a href='#' onclick='publishBlog({9});return false'>发布</a> |<a href='#' onclick='editTmpBlog({0});return false'>编辑</a> | <a href='#' onclick='delTmpBlog({1});return false'>删除</a></span><font class='font14'><b><a href='TFProfileBlogNew.aspx?tmpBlogId={2}'>{3}</a></b></font> {4}  阅读(<a href='#'>{5}</a>)| 评论(<a href='#'>{6}</a>) </div><div class='BlogPreview'>{7} (<a href='#' onclick='editTmpBlog({8});return false'>编辑</a>)</div></div>";

    public const string ALBUM_SINGLE =
       "<div class='BlogBox'><div class='BlogTitle'><span><a href='#' onclick='editBlog({0});return false'>编辑</a> | <a href='#' onclick='delBlog({1});return false'>删除</a></span><font class='font14'><b><a href='TFProfileBlogDetail.aspx?blogId={2}'>{3}</a></b></font> {4} </div><div class='BlogPreview'>{5} (<a href='#' onclick='editBlog({6});return false'>编辑</a>)</div><div class='BlogFooter'>阅读(<a href='#'><label id='readerCount'>{7}</label></a>)| 评论(<a href='#'><label id='commentCount'>{8}</label></a>) </div></div>";

    private Constant()
    {

    }
}
